<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@include file="../../common/jsVersion.jsp" %>
<link href="${pageContext.request.contextPath}/resources/css/upload.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/strip.css" />
<div class="nav-view margin-bottom-10 border-bottom" >
		<a id="premises_act_1"  onclick="projectPremisesInfo()" class="btn-nav-default activi" >分期信息</a>
		<a id="premises_indust" class="btn-nav-default" onclick="premisesIndust()">销售情况查看</a>
		<a id="buding_indust" class="btn-nav-default" onclick="budingIndust()">分期下各楼栋业态及汇总</a>
	</div>
	<div id="premises_maincontent"  style="height:100%;overflow-y:scroll;">
	</div>

<script type="text/javascript">
var jypath = '${pageContext.request.contextPath}';
$(function(){
	$("#premises_act_1").addClass("active");
	projectPremisesInfo();
});

//加载分期信息
function projectPremisesInfo(){
	$("#premises_act_1").addClass("active");
	$("#premises_indust").removeClass("active");
	$("#buding_indust").removeClass("active");
	var url = "${pageContext.request.contextPath}/estate/projectPremises/toProjectInfo";
	var params = {
			id:'${id}'
	};
	$.post(url,params,function(html){
		$("#premises_maincontent").html(html);
	});
}
//加载分期业态,回款计划额  计划销售额  动态数据
function premisesIndust(){
	$("#premises_act_1").removeClass("active");
	$("#premises_indust").addClass("active");
	$("#buding_indust").removeClass("active");
	var url = "${pageContext.request.contextPath}/estate/project/toStageBrowse";
	var params = {
			id:'${projectId}',
			premisesId:'${id}'
	};
	$.post(url,params,function(html){
		$("#premises_maincontent").html(html);
	});
	
}
function budingIndust(){
	$("#premises_act_1").removeClass("active");
	$("#premises_indust").removeClass("active");
	$("#buding_indust").addClass("active");
	
	var url = "${pageContext.request.contextPath}/estate/project/toBudingIndust";
	var params = {
			projectId:'${projectId}',
			premisesId:'${id}',
			industType:'2',
			buildIndustType:'2'
	};
	$.post(url,params,function(html){
		$("#premises_maincontent").html(html);
	});
}

</script>


